package com.fwj.authorization.staff.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fwj.base.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * SysUserExpand
 *
 * @author 樊温军
 * @date 2025/3/18 上午11:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "用户扩展字段")
public class SysUserExpand extends BaseDTO {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不能为空")
    private String username;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 手机
     */
    @ApiModelProperty(value = "手机")
    private String mobile;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 生效时间
     */
    @ApiModelProperty(value = "生效时间")
    private String effectTime;

    /**
     * 失效时间
     */
    @ApiModelProperty(value = "失效时间")
    private String expireTime;

    /**
     * 最后登录时间
     */
    @ApiModelProperty(value = "最后登录时间")
    private String lastLoginTime;

}